﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ManagerContact.ascx.cs"
    Inherits="ServicesDirectory.UserControl.ManagerContact" %>
<%@ Register Src="LookupContactManager.ascx" TagName="LookupContactManager" TagPrefix="uc1" %>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <div id="overlay1" class="web_dialog_overlay"></div>
        <div id="draggableManagerContact" class="bgManager">
            <div class="TitleManarer">
                <asp:Label runat="server" ID="lblTitleContact"></asp:Label>
                <asp:Button runat="server" CausesValidation="false" OnClick="CmdBack_Click" CssClass="CloseButtonPopup"
                    ID="cmdClose" />
            </div>
            <div>
                <div id="tab1" class="tab_content" style="display: block;">
                    <div class="ManagerContentBorder">
                        <div class="spaceManager">
                        </div>
                        <div class="titleCol1">
                            First Name <span class="mandatoryFields">*</span>
                        </div>
                        <div class="titleCol2">
                            <asp:TextBox runat="server" ID="txtFirstName" Width="90%" MaxLength="50" TabIndex="1"></asp:TextBox><asp:RequiredFieldValidator
                                ID="RequiredFieldValidator1" runat="server" ErrorMessage="*" ControlToValidate="txtFirstName"
                                ToolTip="First Name is not empty" SetFocusOnError="true" ValidationGroup="errorContact"></asp:RequiredFieldValidator>
                        </div>
                        <div class="titleCol1">
                            Manager Name
                        </div>
                        <div class="titleCol2">
                            <asp:Label CssClass="lookUpName" runat="server" Width="120px" ID="lblManagerName"></asp:Label>
                            <div class="lookUp">
                                <asp:LinkButton runat="server" ID="lookup" Text="Lookup" OnClick="Lookup_Click" TabIndex="2"></asp:LinkButton>
                            </div>
                        </div>
                        <div class="spaceManager">
                        </div>
                        <div class="titleCol1">
                            Surname <span class="mandatoryFields">*</span>
                        </div>
                        <div class="titleCol2">
                            <asp:TextBox runat="server" ID="txtSurname" Width="90%" MaxLength="17" TabIndex="3"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ValidationGroup="errorContact"
                                ControlToValidate="txtSurName" SetFocusOnError="true" ToolTip="SurName can't empty"
                                ErrorMessage="*"></asp:RequiredFieldValidator>
                        </div>
                        <div class="titleCol1">
                            Contact Type <span class="mandatoryFields">*</span>
                        </div>
                        <div class="titleCol2">
                            <asp:DropDownList runat="server" Width="98%" ID="cboContactType" TabIndex="4" />
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="*"
                                ToolTip="ContactType can't empty!" ValidationGroup="errorContact" ControlToValidate="cboContactType"></asp:RequiredFieldValidator>
                        </div>
                        <div class="spaceManager">
                        </div>
                        <div class="titleCol1">
                            Known As
                        </div>
                        <div class="titleCol2">
                            <asp:TextBox runat="server" ID="txtKnownAs" Width="90%" TabIndex="5"></asp:TextBox>
                        </div>
                        <div class="titleCol1">
                            Best Contact Method
                        </div>
                        <div class="titleCol2">
                            <asp:DropDownList runat="server" Width="98%" ID="cboBestContact" TabIndex="6" />
                        </div>
                        <div class="spaceManager">
                        </div>
                        <div class="titleCol1">
                            Office Phone
                        </div>
                        <div class="titleCol2">
                            <asp:TextBox runat="server" ID="txtOfficePhone" Width="90%" TabIndex="7"></asp:TextBox>
                            <asp:RegularExpressionValidator ToolTip="Phone number is not fomat:xxx[.- ]xxx[.- ]xxx[x][.- ]x[xxx]"
                                ID="RegularExpressionValidator2" runat="server" ErrorMessage="*" ValidationExpression="^\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{3,4})?[-. ]?([0-9]{0,4})$"
                                ControlToValidate="txtOfficePhone" ValidationGroup="errorContact" SetFocusOnError="true"></asp:RegularExpressionValidator>
                        </div>
                        <div class="titleCol1">
                            Job Role
                        </div>
                        <div class="titleCol2">
                            <asp:TextBox runat="server" ID="txtJobRole" Width="90%" TabIndex="8"></asp:TextBox>
                        </div>
                        <div class="spaceManager">
                        </div>
                        <div class="titleCol1">
                            Mobile Phone
                        </div>
                        <div class="titleCol2">
                            <asp:TextBox runat="server" ID="txtMobilePhone" TabIndex="9" Width="90%"></asp:TextBox>
                            <asp:RegularExpressionValidator ToolTip="Phone number is not fomat:xxx[.- ]xxx[.- ]xxx[x][.- ]x[xxx]"
                                ID="RegularExpressionValidator3" runat="server" ErrorMessage="*" ValidationExpression="^\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{3,4})?[-. ]?([0-9]{0,4})$"
                                ControlToValidate="txtMobilePhone" ValidationGroup="errorContact" SetFocusOnError="true"></asp:RegularExpressionValidator>
                        </div>
                        <div class="titleCol1">
                            Workbase
                        </div>
                        <div class="titleCol2">
                            <asp:TextBox runat="server" ID="txtWorkbase" Width="90%" MaxLength="50" TabIndex="10"></asp:TextBox>
                        </div>
                        <div class="spaceManager">
                        </div>
                        <div class="titleCol1">
                            ST HomePhone
                        </div>
                        <div class="titleCol2">
                            <asp:TextBox runat="server" ID="txtStHomePhone" TabIndex="11" Width="90%" MaxLength="17"></asp:TextBox>
                            <asp:RegularExpressionValidator ToolTip="Phone number is not fomat:xxx[.- ]xxx[.- ]xxx[x][.- ]x[xxx]"
                                ID="RegularExpressionValidator4" runat="server" ErrorMessage="*" ValidationExpression="^\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{3,4})[-. ]?[-. ]?([0-9]{0,4})$"
                                ControlToValidate="txtStHomePhone" ValidationGroup="errorContact" SetFocusOnError="true"></asp:RegularExpressionValidator>
                        </div>
                        <div class="titleCol1">
                            Job Title
                        </div>
                        <div class="titleCol2">
                            <asp:TextBox runat="server" ID="txtJobTitle" TabIndex="12" Width="90%" MaxLength="50"></asp:TextBox>
                        </div>
                        <div class="spaceManager">
                        </div>
                        <div class="titleCol1">
                            Email Address
                        </div>
                        <div class="titleCol2">
                            <asp:TextBox runat="server" ID="txtEmail" Width="90%" TabIndex="13" MaxLength="50"></asp:TextBox>
                            <asp:RegularExpressionValidator ControlToValidate="txtEmail" ID="RegularExpressionValidator1"
                                ValidationExpression="^[a-zA-Z][\w\.-]*[a-zA-Z0-9]@[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$"
                                runat="server" ErrorMessage="*" ToolTip="Email is not fomat!" ValidationGroup="errorContact"></asp:RegularExpressionValidator>
                        </div>
                        <div class="titleCol1">
                            Is Active?
                        </div>
                        <div class="titleCol2">
                            <asp:CheckBox runat="server" TabIndex="14" ID="chkActive" />
                        </div>
                        <div class="spaceManager">
                        </div>
                        <div class="ContactButton">
                            <asp:Button runat="server" ValidationGroup="errorContact" Width="60px" TabIndex="15"
                                ID="cmdSave" Text="Save" Font-Size="XX-Small" Style="height: 21px" OnClick="CmdSave_Click" />
                            <asp:Button runat="server" CausesValidation="false" TabIndex="16" Width="60px" ID="cmdBack"
                                Text="Close" Font-Size="XX-Small" OnClick="CmdBack_Click" />
                        </div>
                        <div style="margin-top: 10px; margin-right: 8px; width: 300px; float: right">
                            <asp:Label runat="server" Visible="false" CssClass="announce" ID="lblannounce"></asp:Label>
                        </div>
                        <div class="spaceManager">
                        </div>
                    </div>
                </div>
            </div>
            <asp:Panel ID="lookupc" CssClass="web_dialog" Visible="false" runat="server">
                <uc1:LookupContactManager ID="LookupContactManager1" runat="server" />
            </asp:Panel>
        </div>
    </ContentTemplate>
</asp:UpdatePanel>
